//
//  CaseDetailCell.m
//  e律师
//
//  Created by 韦淋 on 2017/5/16.
//  Copyright © 2017年 test. All rights reserved.
//

#import "CaseDetailCell.h"

@implementation CaseDetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initalizeInterface];
    }
    return self;
}
- (void)initalizeInterface{
    [self.contentView addSubview:self.titleLable];
    [self.contentView addSubview:self.arrowImageView];
}
- (void)layoutSubviews{
    
    self.titleLable.frame = CGRectMake(5, 0, 300, 50);
    self.arrowImageView.frame = CGRectMake(300, 0, 50, 50);
}

- (UILabel *)titleLable{
    if (!_titleLable) {
        _titleLable = [[UILabel alloc]init];
        _titleLable.textColor = [UIColor whiteColor];
        _titleLable.font = [UIFont systemFontOfSize:15];
    }
    return _titleLable;
}
- (UIImageView *)arrowImageView{
    if (!_arrowImageView) {
        _arrowImageView = [[UIImageView alloc] init];
        _arrowImageView.backgroundColor = [UIColor redColor];
    }
    return _arrowImageView;
}
@end
